﻿using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Text;

namespace EBA.Dynamic
{
    /// <summary>
    /// 默认包装器
    /// </summary>
    public class DynamicContext : IDynamicContext
    {
        /// <summary>
        /// 实际对象
        /// </summary>
        public object ContextObject { get; set; }
        /// <summary>
        /// 实际对象类型
        /// </summary>
        public Type ContextType { get; set; }

        /// <summary>
        /// 初始化上下文数据
        /// </summary>
        /// <param name="contextObject"></param>
        public void Initialize(object contextObject)
        {
            this.ContextType = (Type)contextObject.GetType();
            this.ContextObject = contextObject;
        }
    }







}
